<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<jsp:include page="../header.jsp" />

<table border="1">
	<tr>
		<th>ID</th>
		<th>Email</th>
		<!-- th>Hasło</th -->
		<th>Imię</th>
		<th>Nazwisko</th>
		<th>Data Urodzenia</th>
		<th>Płeć</th>
		<th>Uprawnienia</th>
		<th></th>
	</tr>
	<c:forEach var="user" items="${usersList}">
		<tr>
			<td>${user.getAccountID()}</td>
			<td>${user.getEmail()}</td>
			<!-- td>${user.getPassword()}</td -->
			<td>${user.getName()}</td>
			<td>${user.getSurname()}</td>
			<td>${user.getBirthdateString()}</td>
			<td>${user.getSex()}</td>
			<td>${user.getRole()}</td>
			<td><a href="adminUserDetails.html?id=${user.getAccountID()}">Edytuj</a></td>
		</tr>
	</c:forEach>
</table>


<jsp:include page="../footer.jsp" />